package org.jleaf.springcloud.webui.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 账户服务接口
 * <p>
 * Created by yaoshuhong on 2016/8/3.
 */
@FeignClient("ACCOUNTSERVICE")
public interface AccountService {

    /**
     * 获取用户的账户中的余额
     *
     * @param id
     * @return
     */
    @RequestMapping("balance")
    Double balance(@RequestParam("id") Long id);

}
